<%--
  Created by IntelliJ IDEA.
  User: zjk
  Date: 2018-08-16
  Time: 17:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>高级查询条件窗口</title>
</head>
<body>
<!--引入销售机会js-->
<script type="text/javascript" src="/js/before-sale/saleChance.js"></script>
<!-- 高级查询框 -->
<div class="client-advance-search" style="">
    <table class="advance-table">
        <tr>
            <td style="width: 20%; text-align: right;"><label>合同主题：</label></td>
            <td style="width: 40%;text-align: left;"><input id="contract-advance-search-contractTopic"
                                                            name="contractTopic" class="easyui-textbox"
                                                            style="width: 100%"></td>
            <td style="width: 40%"></td>
        </tr>
        <tr>
            <td style="width: 20%; text-align: right;"><label>客户：</label></td>
            <td style="width: 40%;text-align: left;"><input id="contract-advance-search-cName" name="cName"
                                                            class="easyui-textbox" data-options=""
                                                            style="width: 100%"></td>
            <td style="width: 40%"></td>
        </tr>
        <tr>
            <td style="width: 20%; text-align: right;"><label>员工：</label></td>
            <td style="width: 40%;text-align: left;"><input id="contract-advance-search-eName" name="eName"
                                                            class="easyui-textbox"
                                                            data-options=" panelHeight: 'auto'"
                                                            style="width: 100%"></td>
            <td style="width: 40%"></td>
        </tr>
        <tr>
            <td style="width: 20%; text-align: right;"><label>计划：</label></td>
            <td style="width: 40%;text-align: left;"><input id="contract-advance-search-planName" name="eName"
                                                            class="easyui-textbox"
                                                            data-options=" panelHeight: 'auto'"
                                                            style="width: 100%"></td>
            <td style="width: 40%"></td>
        </tr>
        <tr>
            <td style="width: 20%; text-align: right;"><label>开始时间：</label></td>
            <td style="width: 40%;text-align: left;">
                <input id="contract-advance-search-orderStartTime" name="orderStartTime" class="easyui-datebox"
                       style="width: 263px;">
                <a href="#" class="easyui-linkbutton" data-options="text:'到',disabled:true"
                   style="width: 8%; height: 100%"></a>
                <input id="contract-advance-search-orderOverTime" name="orderOverTime" class="easyui-datebox"
                       style="width: 265px;"></td>
            <td style="width: 40%"></td>
        </tr>
        <tr>
            <td style="width: 20%; text-align: right;"></td>
            <td style="width: 40%; text-align: center;"><a id="contractAdvanceSearch-submit"
                                                           class="easyui-linkbutton"
                                                           data-options="text:'查询',width:50"></a></td>
            <td style="width: 40%"></td>
        </tr>

    </table>
</div>
<script type="text/javascript">
    $(function () {
        $("#contractAdvanceSearch-submit").linkbutton({
            onClick: function () {
                $("#dr5hx-contractList").datagrid({
                    url: "/contractAdvanceSearch",
                    queryParams: {
                        contractTopic: $("#contract-advance-search-contractTopic").textbox('getValue'),
                        orderStartTime: $("#contract-advance-search-orderStartTime").datebox('getValue'),
                        orderOverTime: $("#contract-advance-search-orderOverTime").datebox('getValue'),
                        cName: $("#contract-advance-search-cName").textbox('getValue'),
                        eName: $("#contract-advance-search-eName").textbox('getValue'),
                        planName: $("#contract-advance-search-planName").textbox('getValue')
                    },
                    method: 'post',
                })
                $("#advance-contract-chance-dialog").dialog('close')
            }

        })
    })


</script>
</body>
</html>
